package API.File.CommonMethods;

import java.io.File;
import java.io.IOException;

public class CreateAndDelete {
    public static void main(String[] args) throws IOException {
        String mainPath = "git-container-java\\src\\API\\File\\CommonMethods\\Files\\";
        File file = new File(mainPath + "newFile.txt");
        System.out.println(file.createNewFile());
        File dir1 = new File(mainPath + "newDir1");
        System.out.println(dir1.mkdir());
        File dir2 = new File(mainPath + "newDir2/kidDir");
        System.out.println(dir2.mkdirs());
        System.out.println(file.delete());
    }
}
